home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 18 / CU Amiga Magazine's Super CD-ROM 18 (1997)(EMAP Images)(GB)[!][issue 1998-01].iso / CUCD / Online / CNetDemo / cnet / sdk / include / internet.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-09-04  |  1.8 KB  |  59 lines

  1. // ---------------- internet structures used by CNet/4+ Pro-------------------
  2. // **     FIRST APPEARED in CNet V4.2bR2 (post final-beta version)
  3.  
  4.  
  5.  
  6. // config structure saved as a **header** in mail:users/xxx/prefs/cnirc
  7. // following this structure - on disk - are server, info and auto-join channel
  8. // instances each on a separate line.
  9. struct IrcUserConfig
  10.     {
  11.     UBYTE ANSI; // 0=ANSI scrolling, 1=ANSI locking, 2=simple ANSI
  12.     ULONG flags; // currently unused - expansion
  13.     struct List *serverlist;    // Exec list of servers to autojoin - currently internal use only
  14.                               // may be read directly from user cnirc config
  15.                               // file.
  16.     };
  17.  
  18.  
  19.  
  20. // server structure used internally by CNetIRC
  21. struct ServerNode
  22.     {
  23.     struct Node snode;    // IP/hostname in snode.ln_Name
  24.     char sinfo[36];        // textual description of server
  25.     char channel[40];        // autojoin channel
  26.     };
  27.  
  28.  
  29. // NEW 4.26c+ server structure used internally by CNetIRC
  30. struct ServerNode1
  31.     {
  32.     struct Node snode;    // IP/hostname in snode.ln_Name
  33.     char sinfo[36];        // textual description of server
  34.     char channel[40];    // autojoin channel
  35.     char RealName[31];    // max length = 30
  36.     char NickName[11];    // max length = 10
  37.     char QuitMsg[80];    // msg to print when quitting - maxlength = 79
  38.     };
  39.  
  40.  
  41.  
  42. // identd structure saved in linked list myp->MPE->idd
  43. // always ObtainSemaphore(myp->MPE->sem[1]) before accessing myp->MPE->idd
  44. // as IdentData may be removed at any time when a client is done with it's
  45. // TCP socket(s).
  46. //
  47. // Also see cnetfuncs.h for CNet 3rd party-friendly identd
  48. // insert/remove/lookup functions present in cnet.library.
  49. //
  50. // an example of identd insertion/removal/lookup is present as
  51. // sdk/examples/identdtest.c
  52. //
  53. struct IdentdData
  54.     {
  55.     unsigned int socket;    // local port owned by user
  56.     short port;       // local user's CNet port number
  57.     struct IdentdData *next;
  58.     };
  59.